package com.atguigu03.threadsafe.runnablesafe.ex;

public class Test {
    public static void main(String[] args) {
        Account account=new Account();
        account.setBalance(0);
        Customer c1=new Customer(account);
        Customer c2=new Customer(account);

        Thread t1=new Thread(c1);
        Thread t2=new Thread(c2);

        t1.setName("甲");
        t2.setName("乙");
        t1.start();
        t2.start();


    }
}
